﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TravelLib
{
    public class Airport
    {
        /// <summary>
        /// matrix index used in destination storages
        /// </summary>
        private int _index;
        /// <summary>
        /// Index Property
        /// </summary>
        public int Index
        {
            get { return _index; }
            set { _index = value; }
        }
        /// <summary>
        /// the Airport code ('A','B','C'....)
        /// </summary>
        private string _code;
        /// <summary>
        ///CodeProperty of the Airport 
        /// </summary>
        public string Code
        {
            get { return _code; }
        }
        /// <summary>
        /// the Airport Name
        /// </summary>
        private string _name;
        /// <summary>
        /// Name property
        /// </summary>
        public string Name
        {
            get { return _name; }
        }
        /// <summary>
        /// Airport Constructor
        /// </summary>

        public Airport()
        {

        }
        /// <summary>
        /// Airport Constructor
        /// </summary>
        /// <param name="code"></param>
        /// <param name="name"></param>
        public Airport(int index,string code, string name)
        {
            this._index = index;
            this._code = code;
            this._name = name;
        }

    }
}
